package com.ttc.mBackupK16.BackupContacts;

import java.io.InputStream;
import java.util.ArrayList;

import android.graphics.Bitmap;

public class Contact {
	private String id;
 	private String displayName;
 	private ArrayList<Phone> phone = new ArrayList<Phone>();
 	private ArrayList<Email> email = new ArrayList<Email>();
 	private ArrayList<String> notes = new ArrayList<String>();
 	private ArrayList<Address> addresses = new ArrayList<Address>();
 	private ArrayList<IM> imAddresses = new ArrayList<IM>(); 
 	private ArrayList<Organization> organization= new ArrayList<Organization>();
 	private MyStructuredName structuredName;
 	private boolean isChecked = false;
 	private Bitmap photo;
  	
 	public Contact() {
		// TODO Auto-generated constructor stub
 		super();
	}
 	
 	public Contact(String displayName, String phoneNumber) {
		// TODO Auto-generated constructor stub
 		this.structuredName = new MyStructuredName(displayName, null, null, null, null, null, null, null, null);
 		this.phone = new ArrayList<Phone>();
 		this.phone.add(new Phone(phoneNumber, "sizefile"));
	}
 	
 	public ArrayList<Organization> getOrganization() {
 		return organization;
 	}
 	public void setOrganization(ArrayList<Organization> organization) {
 		this.organization = organization;
 	}
 	public ArrayList<IM> getImAddresses() {
 		return imAddresses;
 	}
 	public void setImAddresses(ArrayList<IM> imAddresses) {
 		this.imAddresses = imAddresses;
  	}
 	public void addImAddresses(IM imAddr) {
 		this.imAddresses.add(imAddr);
 	}
 	public ArrayList<String> getNotes() {
 		return notes;
 	}
 	public void setNotes(ArrayList<String> notes) {
 		this.notes = notes;
 	}
 	public void addNote(String note) {
 		this.notes.add(note);
 	}
 	public ArrayList<Address> getAddresses() {
 		return addresses;
 	}
 	public void setAddresses(ArrayList<Address> addresses) {
 		this.addresses = addresses;
 	}
 	public void addAddress(Address address) {
 		this.addresses.add(address);
 	}
 	public ArrayList<Email> getEmail() {
 		return email;
 	}
 	public void setEmail(ArrayList<Email> email) {
 		this.email = email;
 	}
 	public void addEmail(Email e) {
 		this.email.add(e);
 	}	
 	public String getId() {
 		return id;
 	}
 	public void setId(String id) {
  		this.id = id;
 	}
 	public String getDisplayName() {
 		return displayName;
 	}
 	public void setDisplayName(String dName) {
 		this.displayName = dName;
 	}
 	public MyStructuredName getStructuredName(){
 		return this.structuredName;
 	}
 	public void setStructuredName(MyStructuredName structuredName){
 		this.structuredName = structuredName;
 	}
 	public ArrayList<Phone> getPhone() {
 		return phone;
 	}
 	public void setPhone(ArrayList<Phone> phone) {
 		this.phone = phone;
 	}
 	public void addPhone(Phone phone) {
 		this.phone.add(phone);
 	}
 	public void setChecked(boolean isChecked) {
		this.isChecked = isChecked;
	}
	public boolean isChecked() {
		return isChecked;
	}
	public void setPhoto(Bitmap bmPhoto){
		this.photo = bmPhoto;
	}
	public Bitmap getPhoto(){
		return this.photo;
	}
}
